package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.qo.PageResult;
import cn.wolfcode.qo.queryObject;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface IEmployeeService {
    void delete(Long id);

    void save(Employee employee, Long[] ids);

    Employee get(Long id);

    List<Employee> listAll();

    void update(Employee employee, Long[] ids);

    PageResult<Employee> query(queryObject qo);

    Employee login(@Param("name") String name, @Param("password") String password);


    void updatePwd(String newPassword,String oldPassword,Long id);

    void resetPwdById(String newPassword,Long id);
}
